'''
Created on 22/04/2010
First in first out
@author: Mar
'''

from Scheduler import Scheduler
import queue
import OS

class FF (Scheduler):
    
    def __init__(self):
        Scheduler.__init__(self)
        self.readyQueue=queue.Queue()

    
    def addPCB(self,aPCB): 
        self.readyQueue.put(aPCB)
      
      
    def getReadyQueue(self):
        return self.readyQueue
        
    def nextPCB(self):
        return self.readyQueue.get()
    
    def isQuantum(self):
        return False